package com.creative.accountsdk.bean;

import org.json.JSONObject;

/**
 * 课程
 * Created by david on 15/11/26.
 */
public class CourseInfo implements Cloneable{

    public long     id;       //课程id
    public String  name;      //课程名称
    public boolean  checked;  //是否选 中

    public CourseInfo setJsonTovo(JSONObject  json){
        id = json.optLong("id");
        name = json.optString("name");
        return this;
    }

    public Object clone() {
        CourseInfo o = null;
        try {
            o = (CourseInfo) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return o;
    }
}
